{% include 'head.html' %}
<body>
<div id="Wrapper">
{% include 'header.html' %}
<div id="Conter-Article">
	<div class="Conter-Article-entry">
			<div class="Conter-Article-entry-title"><a href="{% if article_page.title_link %} {{ article_page.title_link }} {% else %} {{ article_page.title_url }} {% endif %}" ><h1>{{ article_page.title }}</h1></a></div>
			<div class="Conter-Article-entry-time">TIME:{{ article_page.last_modified }}</div>
			<div class="Conter-Article-entry-content">{{ article_page.content }}</div>

	{% if article_page.have_comment %}
		<div class="Conter-Article-entry-comment">------{{ message }}------</div>
		{% for comment in comments %}
		<div class="Conter-Article-entry-comment">
			{{ comment.comment_content }}
		</div>
		{% endfor %}	
		{% if comment_form %}
		<div id="Article-entry-form">
			<form method="post" action="/indoor/comment" id="Article-entry-form-Comment">
			Name:
			<input type="text" name="article_comment_author_name" value="{{ message }}" class="input" />
			<br />
			<textarea name="article_comment_content" rows="8" cols="38"></textarea>
			<input type="hidden" name="article_comment_parent_url" value="{{ article_page.title_url }}">
			<input type="hidden" name="article_comment_message_email" value="{{ message_email }}">
			<input type="hidden" name="article_comment_message_name" value="{{ message }}">
			<br /> &nbsp;&nbsp;
			<input type="submit" name="Comment-submit" id="Comment-Submit" class="button-Comment-submit" value="Publish"  />
			</form>
			<div class="Conter-Article-entry-comment"><a href="/indoor/comment/logout?p={{ article_page.title_url }}" >logout Comment</a></div>
		</div>
		{% else %}
			<div class="Conter-Article-entry-comment"><a href="/indoor/comment/login?p={{ article_page.title_url }}" >Login Comment</a></div>
		{% endif %}
	{% else %}
		<div class="Conter-Article-entry-comment">close comment</div>
	{% endif %}

	</div>
</div>
{% include 'sidebar.html' %}
{% include 'footer.html' %}
</div>
</body>
</html>
